<?php
include "../dyn/connexion.php";


if(isset($_POST['idTexte']) && isset($_POST['comentaire']) && isset($_POST['usercoment']) && $_POST['comentaire']!=""){
							$use=$_POST['usercoment'];
							$comentaire=$_POST['comentaire'];
							$idTexte = $_POST['idTexte'];
							mysql_query("INSERT INTO Commentaire VALUES ('','".$idTexte."','".$use."','".$comentaire."',NOW(),'0')");			
							return "<p id='result' style='border:3px solid SkyBlue; background-color:SkyBlue;width:70%;text-align:center;'>Texte bien enregistée !</p>";
}
?>